﻿// Decompiled with JetBrains decompiler
// Type: System.Web.Razor.GeneratorResults
// Assembly: System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: 682513D6-F37E-48AC-9909-F3EE103CFF14
// Assembly location: D:\Project\Idea\无人机外网\uav\客户端工程\排查工具\bin\Release\System.Web.Razor.dll

using System.CodeDom;
using System.Collections.Generic;
using System.Web.Razor.Generator;
using System.Web.Razor.Parser.SyntaxTree;

namespace System.Web.Razor
{
  /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Represents results from code generation.</summary>
  public class GeneratorResults : ParserResults
  {
    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the <see cref="T:System.Web.Razor.GeneratorResults" /> class.</summary>
    /// <param name="parserResults">The parser results.</param>
    /// <param name="generatedCode">The generated code.</param>
    /// <param name="designTimeLineMappings">The dictionary of design-time generated code mappings.</param>
    public GeneratorResults(
      ParserResults parserResults,
      CodeCompileUnit generatedCode,
      IDictionary<int, GeneratedCodeMapping> designTimeLineMappings)
      : this(parserResults.Document, parserResults.ParserErrors, generatedCode, designTimeLineMappings)
    {
    }

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the <see cref="T:System.Web.Razor.GeneratorResults" /> class.</summary>
    /// <param name="document">The document.</param>
    /// <param name="parserErrors">The parser errors.</param>
    /// <param name="generatedCode">The generated code.</param>
    /// <param name="designTimeLineMappings">The dictionary of design-time generated code mappings.</param>
    public GeneratorResults(
      Block document,
      IList<RazorError> parserErrors,
      CodeCompileUnit generatedCode,
      IDictionary<int, GeneratedCodeMapping> designTimeLineMappings)
      : this(parserErrors.Count == 0, document, parserErrors, generatedCode, designTimeLineMappings)
    {
    }

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the <see cref="T:System.Web.Razor.GeneratorResults" /> class.</summary>
    /// <param name="success">true if the code generation is a success; otherwise, false.</param>
    /// <param name="document">The document.</param>
    /// <param name="parserErrors">The parser errors.</param>
    /// <param name="generatedCode">The generated code.</param>
    /// <param name="designTimeLineMappings">The dictionary of design-time generated code mappings.</param>
    protected GeneratorResults(
      bool success,
      Block document,
      IList<RazorError> parserErrors,
      CodeCompileUnit generatedCode,
      IDictionary<int, GeneratedCodeMapping> designTimeLineMappings)
      : base(success, document, parserErrors)
    {
      this.GeneratedCode = generatedCode;
      this.DesignTimeLineMappings = designTimeLineMappings;
    }

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the generated code.</summary>
    /// <returns>The generated code.</returns>
    public CodeCompileUnit GeneratedCode { get; private set; }

    /// <summary>This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the dictionary of design-time generated code mappings.</summary>
    /// <returns>The dictionary of design-time generated code mappings.</returns>
    public IDictionary<int, GeneratedCodeMapping> DesignTimeLineMappings { get; private set; }
  }
}
